import React from 'react'
import GuestIndex from '@/components/guest/index'
import GuestAdd from '@/components/guest/add'
import GuestEdit from '@/components/guest/edit'

const list = [
  {
    path: 'index',
    component: GuestIndex,
  },
  {
    path: 'add',
    component: GuestAdd,
  },
  {
    path: 'edit',
    component: GuestEdit,
  }
]


const Layout = () => <React.Router.Outlet />


const RouterList = [
  {
    path: '/guest', 
    component: Layout, 
    children: list, 
  }
]

export default RouterList